<?php

/**
 * 最近文章插件
 * @author MrHan<hcj112@163.com>
 */
class NewArticle extends AddonsController
{
    public function right()
    {
        $list = D('Article')->getNewArticle();
        if ($list) {
            $this->assign('alist', $list);
            $this->display('Article');
        } else {
            return false;
        }
    }
}